import request from '@/utils/request'
import type{updateShenPiRen} from '@/model'
export const getShenPiRenList = () => request.get('/getShenPiRenList')

export const  selectByName = (name:string) => request.get(`/selectByName/${name}`)

export const getKaoQinRenList = () => request.get('/getKaoQinRenList')
export const getQingJiaRenList = () => request.get('/getQingJiaRenList')

export const updateShenPi= (updateShenPiRenData: updateShenPiRen) => 
    request.post('/updateShenPiRen', JSON.stringify(updateShenPiRenData), {
    headers: {
      'Content-Type': 'application/json'
    }
  })
